query associative table ef6

68

query associative table ef6 -

var cat_id=1; // Change this variable for your real cat_id

var query= from article in db.Articles
           where article.Categories.Any(c=>c.Category_ID==cat_id)
           select article;

Comments

Submit
0 Comments